package cc.autoapi.pucong.auto.flow.provider.log.entity;

import cc.autoapi.pucong.auto.flow.persistence.po.log.ApiInstanceNodePo;
import cc.autoapi.pucong.auto.flow.provider.log.entity.vo.ApiInstanceNodeDetailVo;
import cc.autoapi.pucong.auto.flow.provider.log.entity.vo.ApiInstanceNodeVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author pucong
 * @description 项目接口实例节点日志 cover
 * @create 2024-10-07
 */
@Mapper(componentModel = "spring")
public interface ApiInstanceNodeConvert {

    ApiInstanceNodeConvert INSTANCE = Mappers.getMapper(ApiInstanceNodeConvert.class);

    /**
     * list<po>转list<vo>
     * @param apiInstanceNodes
     * @return
     */
    List<ApiInstanceNodeVo> po2vos(List<ApiInstanceNodePo> apiInstanceNodes);

    ApiInstanceNodeDetailVo po2Detailvo(ApiInstanceNodePo apiInstanceNode);
}
